<?php
namespace Json\Controller;
use Think\Controller;
class UserController extends Controller {
	  public function userlistJson(){
       
       $use= $this->users=M('user')->select();
   echo json_encode($use);
      } 
  
    public function userOneJson($id){
       
       $user = M('user') -> where("userid='$id'") -> find();
       echo json_encode($user);
      } 
}